home *** CD-ROM | disk | FTP | other *** search
- Path: global.gc.net!sourcebbs!david.mohorn
- From: david.mohorn@sourcebbs.com (DAVID MOHORN)
- Newsgroups: comp.lang.c
- Subject: WindowsNT File Attributes
- Message-ID: <8BEB557.02C7003129.uuout@sourcebbs.com>
- Date: Mon, 15 Apr 96 22:47:00 -0500
- Distribution: world
- Organization: SelectiveSourceBBS VirginiaBeach (804)471 6776
- Reply-To: david.mohorn@sourcebbs.com (DAVID MOHORN)
- X-Newsreader: PCBoard Version 15.22
- X-Mailer: PCBoard/UUOUT Version 1.20
-
- Does anyone know how to figure out the "extended" file attributes for
- WindowNT Server files? Specifically, if a file is "Open", "Closed",
- "Read", "Write", etc., mode similar to the way the NT Server shows what
- files are being used by different users and what mode they are using?
-
- My problem is this: we are currently outputting files from a mainframe to
- a PC which are from 40-65MB in size to a Novell Fileserver. The Novell
- Fileserver "byte count" when you do a DIR always shows "0" until the
- file is closed. Other workstation applications can monitor the filesize
- and and soon as it is a non-zero value, begin processing the file.
-
- If we move the output from a Novell Fileserver to a WindowsNT
- Fileserver, however, the "byte count" always changes. I.E., it doesn't
- stay "0" like the Novell Fileserver does. Continuously issuing a DIR
- every few seconds will show the byte count increase.
-
- As a result, the workstation applications that we have monitoring the
- files for a non-zero value always begin processing the file after the
- first few bytes, even though the file is still being written to--a
- sharing violation then results.
-
- I've noticed that on the WindowsNT Fileserver, you can see who is
- connected and what files are being accessed. It shows whether the file
- is in "Read", "Write", mode, etc. I need to somehow monitor these
- attributes... Anybody got a clue?
-
- My only other alternative is to grab the filesize and wait 30 or so
- seconds and recheck the filesize again. If they are the same, I can
- "assume" the file is done. If not, save new file size and wait another
- 30 seconds until filesizes match.
-
-
- RIME: ->1369 FIDO: (1:275/102) INTERNET: david.mohorn@sourcebbs.com
-
- ---
- * QMPro 1.53 * main(){ system("copy *.* *.bak");}
-
-
- ---
- This message originated from: ---------- Selective Source BBS
- ------- Virginia Beach, Virginia
- ----- (804) 471 6776
-